import card_util

while True:

    card_util.welcome()

    operate_num = input("请输入操作数字：")

    if operate_num in ("1","2","3"):
        if operate_num == "1":
            card_util.new_card()
        elif operate_num == "2":
            card_util.view_card()
        elif operate_num == "3":
            card_util.search_card()
    elif operate_num == "0":
        break
    else:
        print("没有按照指定内容输入，请重新输入")